package com.lzx.resumebase.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * comment
 * @author 
 */
@Data
public class Comment implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 评论人
     */
    private String name;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    /**
     * 父评论id
     */
    private String parentId;

    /**
     * 标签
     */
    private String tag;

    private static final long serialVersionUID = 1L;
}